Optimal. Leaf size=74 \[ \frac {2 b \sqrt {e+f x}}{d f}+\frac {2 (b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {e+f x}}{\sqrt {d e-c f}}\right )}{d^{3/2} \sqrt {d e-c f}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {81, 65, 214}
\begin {gather*} \frac {2 (b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {e+f x}}{\sqrt {d e-c f}}\right )}{d^{3/2} \sqrt {d e-c f}}+\frac {2 b \sqrt {e+f x}}{d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 81
Rule 214
Rubi steps
\begin {align*} \int \frac {a+b x}{(c+d x) \sqrt {e+f x}} \, dx &=\frac {2 b \sqrt {e+f x}}{d f}+\frac {\left (2 \left (-\frac {1}{2} b c f+\frac {a d f}{2}\right )\right ) \int \frac {1}{(c+d x) \sqrt {e+f x}} \, dx}{d f}\\ &=\frac {2 b \sqrt {e+f x}}{d f}-\frac {(2 (b c-a d)) \text {Subst}\left (\int \frac {1}{c-\frac {d e}{f}+\frac {d x^2}{f}} \, dx,x,\sqrt {e+f x}\right )}{d f}\\ &=\frac {2 b \sqrt {e+f x}}{d f}+\frac {2 (b c-a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {e+f x}}{\sqrt {d e-c f}}\right )}{d^{3/2} \sqrt {d e-c f}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 74, normalized size = 1.00 \begin {gather*} \frac {2 b \sqrt {e+f x}}{d f}+\frac {2 (-b c+a d) \tan ^{-1}\left (\frac {\sqrt {d} \sqrt {e+f x}}{\sqrt {-d e+c f}}\right )}{d^{3/2} \sqrt {-d e+c f}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 66, normalized size = 0.89
method | result | size |
derivativedivides | \(\frac {\frac {2 b \sqrt {f x +e}}{d}+\frac {2 f \left (a d -b c \right ) \arctan \left (\frac {d \sqrt {f x +e}}{\sqrt {\left (c f -d e \right ) d}}\right )}{d \sqrt {\left (c f -d e \right ) d}}}{f}\) | \(66\) |
default | \(\frac {\frac {2 b \sqrt {f x +e}}{d}+\frac {2 f \left (a d -b c \right ) \arctan \left (\frac {d \sqrt {f x +e}}{\sqrt {\left (c f -d e \right ) d}}\right )}{d \sqrt {\left (c f -d e \right ) d}}}{f}\) | \(66\) |
risch | \(\frac {2 b \sqrt {f x +e}}{d f}+\frac {2 \arctan \left (\frac {d \sqrt {f x +e}}{\sqrt {\left (c f -d e \right ) d}}\right ) a}{\sqrt {\left (c f -d e \right ) d}}-\frac {2 \arctan \left (\frac {d \sqrt {f x +e}}{\sqrt {\left (c f -d e \right ) d}}\right ) b c}{d \sqrt {\left (c f -d e \right ) d}}\) | \(96\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.09, size = 221, normalized size = 2.99 \begin {gather*} \left [\frac {\sqrt {-c d f + d^{2} e} {\left (b c - a d\right )} f \log \left (\frac {d f x - c f + 2 \, d e - 2 \, \sqrt {-c d f + d^{2} e} \sqrt {f x + e}}{d x + c}\right ) + 2 \, {\left (b c d f - b d^{2} e\right )} \sqrt {f x + e}}{c d^{2} f^{2} - d^{3} f e}, \frac {2 \, {\left (\sqrt {c d f - d^{2} e} {\left (b c - a d\right )} f \arctan \left (\frac {\sqrt {c d f - d^{2} e} \sqrt {f x + e}}{d f x + d e}\right ) + {\left (b c d f - b d^{2} e\right )} \sqrt {f x + e}\right )}}{c d^{2} f^{2} - d^{3} f e}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 11.34, size = 66, normalized size = 0.89 \begin {gather*} \frac {2 b \sqrt {e + f x}}{d f} - \frac {2 \left (a d - b c\right ) \operatorname {atan}{\left (\frac {1}{\sqrt {\frac {d}{c f - d e}} \sqrt {e + f x}} \right )}}{d \sqrt {\frac {d}{c f - d e}} \left (c f - d e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.81, size = 70, normalized size = 0.95 \begin {gather*} -\frac {2 \, {\left (b c - a d\right )} \arctan \left (\frac {\sqrt {f x + e} d}{\sqrt {c d f - d^{2} e}}\right )}{\sqrt {c d f - d^{2} e} d} + \frac {2 \, \sqrt {f x + e} b}{d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 62, normalized size = 0.84 \begin {gather*} \frac {2\,b\,\sqrt {e+f\,x}}{d\,f}+\frac {2\,\mathrm {atan}\left (\frac {\sqrt {d}\,\sqrt {e+f\,x}}{\sqrt {c\,f-d\,e}}\right )\,\left (a\,d-b\,c\right )}{d^{3/2}\,\sqrt {c\,f-d\,e}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________